Vault

{_obsidian_pattern_tag_public}

A guide for Unity devs learning excalibur.js

Unity UI layer

See ex.ScreenElement

Unity background image

const image = new ex.ImageSource("bg.jpg");
image.load().then(() => {
  const actor = new ex.Actor({ x: 0, y: 0, anchor: ex.vec(0, 0), z: -1 });
  actor.graphics.use(image.toSprite());
  game.currentScene.add(actor);
});

Unity empty

Unity GameObject inspector

https://github.com/excaliburjs/dev-tools/tree/main

Unity API

Unity Excalibur.js
Monobehavior.Start https://excaliburjs.com/api/class/Actor#onInitialize
Monobehavior.Update
Monobehavior.FixedUpdate
Object.Destroy https://excaliburjs.com/api/class/Actor#kill